export default {
  plugins: [
    [
      "umi-plugin-react",
      {
        antd: true,
        dva: true
      }
    ]
  ],
  routes: [
    {
      path: "/",
      component: "../layouts",
      routes: [
        { path: "/", component: "./home" },
        { path: "/add", component: "./add" },
        {
          component: "./404"
        }
      ]
    },
   
  ],
  cssLoaderOptions: {
    localIdentName: "[local]"
  },
  devServer: {
    historyApiFallback: true,//不跳转
    inline: true,//实时刷新
    // host: '192.168.80.155',
    proxy:{
        '/api':{
            target:'http://localhost:3010/',
            pathRewrite: {'^/api': ''},
            changeOrigin: true
        }
    }
  },
  hash:true
};

